package com.sunwayworld.basemodule.basedata.batchtype.resource.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.sunwayworld.basemodule.basedata.batchtype.resource.LimsBatchCategoryResource;
import com.sunwayworld.basemodule.basedata.batchtype.service.LimsBatchCategoryService;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogModule;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;

@LogModule("送检单类别管理")
@RestController
@GikamBean
public class LimsBatchCategoryResourceImpl implements LimsBatchCategoryResource {

    @Autowired
    private LimsBatchCategoryService limsBatchCategoryService;

    @Override
    public LimsBatchCategoryService getService() {
        return limsBatchCategoryService;
    }

    @Log(value = "新增送检单类别管理", type = LogType.INSERT)
    @Override
    @RequestMapping(method = RequestMethod.POST)
    public Long insert(RestJsonWrapperBean wrapper) {
        return getService().insert(wrapper);
    }

}
